<html>
<body>
<script language="javascript" defer>
dojo.event.connect(dojo.byId('writePlant'),'onchange', function(e){writeCookie();});
function writeCookie(){
document.cookie="content=" + dojo.byId('writePlant').value + " ;expires = " + new Date(new Date().getTime()+3*86400000).toGMTString() ;	
	}

if(getCookie("content") != null)
	dojo.byId('writePlant').value = getCookie("content");
</script>
<textarea name='textfield' cols="40" rows='6' id='writePlant'></textarea>
</body>
</html>